Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename some properties for consistency #1430

Merged
merged 1 commit into from
Dec 13, 2018
Merged

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries

Renames some properties for consistency with the API:

Old name New name
Account.BusinessLogoFileId Account.BusinessLogoId
LegalEntityVerification.DocumentIdBack LegalEntityVerification.DocumentBackId
Evidence.CancellationPolicyFileId Evidence.CancellationPolicyId
Evidence.CancellationPolicyFile Evidence.CancellationPolicy
Evidence.CustomerCommunicationFileId Evidence.CustomerCommunicationId
Evidence.CustomerCommunicationFile Evidence.CustomerCommunication
Evidence.CustomerSignatureFileId Evidence.CustomerSignatureId
Evidence.CustomerSignatureFile Evidence.CustomerSignature
Evidence.CustomerSignatureFileId Evidence.CustomerSignatureId
Evidence.CustomerSignatureFile Evidence.CustomerSignature
Evidence.DuplicateChargeDocumentationFileId Evidence.DuplicateChargeDocumentationId
Evidence.DuplicateChargeDocumentationFile Evidence.DuplicateChargeDocumentation
Evidence.ReceiptFileId Evidence.ReceiptId
Evidence.ReceiptFile Evidence.Receipt
Evidence.RefundPolicyFileId Evidence.RefundPolicyId
Evidence.RefundPolicyFile Evidence.RefundPolicy
Evidence.ServiceDocumentationFileId Evidence.ServiceDocumentationId
Evidence.ServiceDocumentationFile Evidence.ServiceDocumentation
Evidence.ShippingDocumentationFileId Evidence.ShippingDocumentationId
Evidence.ShippingDocumentationFile Evidence.ShippingDocumentation

@@ -14,7 +14,7 @@ public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject, IPaymentS
public string Object { get; set; }

#region Expandable BusinessLogo
public string BusinessLogoFileId { get; set; }
public string BusinessLogoId { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmmm Are we sure we want to get rid of the File part? This was a good way to infer something is the file id. The new name does not match the API name either.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's internally inconsistent with how other expandable fields are named and how attributes are named in general.

That said, I can add XML comments to indicate that this is a file ID.

@remi-stripe remi-stripe assigned ob-stripe and unassigned remi-stripe Dec 13, 2018
@remi-stripe
Copy link
Contributor

@ob-stripe I'm fine with it so if you prefer that naming, feel free to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants